<div id="content-top">
	<div id="indicator-image">
		<img src="<?php echo site_url()?>/media/images/index-poiter-blue.png"/>
	</div>
	<div id="main-menu">
		<div id="main-menu-header"><?php echo lang('devagno_menu_header_label')?></div>
		<ul>
			<li class="menu-separator"><hr/></li>
		<?php 
		if($mainMenus){
			foreach ($mainMenus as $mainMenu){
		?>
			<li>
			<?php
			if($mainMenu->url){
				$mainUrl = $mainMenu->url;
			}else{
				$mainUrl = site_url().$mainMenu->uri;
			}
			if(isset($mainMenu->subMenus)){
					if($mainMenu->subMenus[0]->url){
						$firstSubUrl = $mainMenu->subMenus[0]->url;
					}else{
						$firstSubUrl = site_url().$mainMenu->subMenus[0]->uri;
					}
			?>
				<a href="<?php echo $firstSubUrl?>"><?php echo $mainMenu->title?></a>
				<ul>
					<li><span><?php echo $mainMenu->title?></span>
					<li class="menu-separator"><hr/></li>
			<?php
				foreach ($mainMenu->subMenus as $subMenu) {
			?>
					<?php
					if($subMenu->url){
						$subUrl = $subMenu->url;
					}else{
						$subUrl = site_url().$subMenu->uri;
					}
					if(site_url(uri_string()) == $subUrl){
					?>
					<li><?php echo $subMenu->title?></li>
					<?php	
					}else{
					?>
					<li><a href="<?php echo $subUrl?>"><?php echo $subMenu->title?></a></li>
					<?php
					}
					?>
			<?php
				}
			?>
				</ul>
			<?php
			}else{
			?>
				<a href="<?php echo $mainUrl?>"><?php echo $mainMenu->title?></a>
			<?php
			}
			?>
			</li>
		<?php
			}
		}
		?>				
		</ul>	
	</div>
	<div id="homepage-slideshow">
		<div class="slider-wrapper theme-default">
            <div class="ribbon"></div>
            <div id="slider" class="nivoSlider">
		<?php
		if($topImageSet && count($topImageSet) > 0){
			$i = 1;
			foreach ($topImageSet as $topImage){
		?>
			<img src="./uploads/default/files/<?php echo $topImage->filename?>" alt="" title="#htmlcaption_<?php echo $i?>" />
		<?php
			$i++;
			}
		}
		?>
			</div>
            <?php
			if($topImageSet){
				$i = 1;
				foreach ($topImageSet as $topImage){
			?>
				<div id="htmlcaption_<?php echo $i;?>" class="nivo-html-caption">
	                <div class="caption-top">
	                <?php echo $topImage->description?>
	                </div>
	                <div class="caption-separator">
	                </div>
	                <div class="caption-bottom">
	                <?php echo $topImage->name?>
	                </div>
            	</div>
			<?php
				$i++;
				}
			}
			?>
        </div>
	</div>
</div>

<div id="devagno-breadcrum">
	<ul>
		<li><a href="<?php echo site_url();?>" > <?php echo lang('devagno_menu_header_label')?></a></li>
		<li><a href="<?php echo site_url(uri_string())?>"><?php echo lang('devagno_forum_menu_label')?></a></li>
	</ul>
	<div class="clear"></div>
</div>

<div class="content-bottom">
	<div id="home-bottom-slider" class="home-bottom-scroll">
		<ul>
		<?php
		if($bottomImageList){
			foreach ($bottomImageList as $bottomImage){
				if($bottomImage){
		?>
			<li>
				<div class="home-bottom-image">
					<a id="folder_<?php echo $bottomImage->folder_id; ?>" href="#<?php echo $bottomImage->folder_name;?>"><img src="./uploads/default/files/<?php echo $bottomImage->filename?>"/></a>
				</div>
				<div class="home-bottom-text">
					<a id="folder_<?php echo $bottomImage->folder_id?>" href="#"><span><?php echo $bottomImage->name?></span></a>
				</div>
			</li>
		<?php 
				}
			}
		}
		?>
		</ul>
	</div>
	<div class="clear"></div>
</div>
<div id="month-wrapper">
	<div class="month-item">
		<a id="month_1" href="#"><span><?php echo lang('devagno_month_january_label')?></span></a>
	</div>
	<div class="month-item">
		<a id="month_2" href="#"><span><?php echo lang('devagno_month_february_label')?></span></a>
	</div>
	<div class="month-item">
		<a id="month_3" href="#"><span><?php echo lang('devagno_month_march_label')?></span></a>
	</div>
	<div class="month-item">
		<a id="month_4" href="#"><span><?php echo lang('devagno_month_april_label')?></span></a>
	</div>
	<div class="month-item">
		<a id="month_5" href="#"><span><?php echo lang('devagno_month_may_label')?></span></a>
	</div>
	<div class="month-item">
		<a id="month_6" href="#"><span><?php echo lang('devagno_month_june_label')?></span></a>
	</div>
	<div class="month-item">
		<a id="month_7" href="#"><span><?php echo lang('devagno_month_july_label')?></span></a>
	</div>
	<div class="month-item">
		<a id="month_8" href="#"><span><?php echo lang('devagno_month_august_label')?></span></a>
	</div>
	<div class="month-item">
		<a id="month_9" href="#"><span><?php echo lang('devagno_month_september_label')?></span></a>
	</div>
	<div class="month-item">
		<a id="month_10" href="#"><span><?php echo lang('devagno_month_october_label')?></span></a>
	</div>
	<div class="month-item">
		<a id="month_11" href="#"><span><?php echo lang('devagno_month_november_label')?></span></a>
	</div>
	<div class="month-item">
		<a id="month_12" href="#"><span><?php echo lang('devagno_month_december_label')?></span></a>
	</div>
	<div class="clear"></div>
</div>
<div id="slider-wrapper">
<div id="month-slider"></div>
</div>
<!--
<div id="footter">
<?php //echo $tweetout;?>
	<div class="clear"></div>
</div>
 -->